
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link rel=stylesheet href='include/hoj.css' type='text/css'>
</head>
<body>
<center>
<div style="width:90%; text-align:left">
<img src="image/logo.png"/>
</div>
<table width=96%> 
	<tr align="center" class='hd' valign="top">
				<th><a href="faqs.php">F.A.Qs</a></th>
		<th><a href="./bbs.php">Web Board</a></th>
		<th><a href="./">Home</a></th>
		<th><a href="./problemset.html">ProblemSet</a></th>
		<th><a href="./status.php">Status</a></th>
		<th><a href="./ranklist.php">Ranklist</a></th>
		<th><a href="./contest.php">Contest</a></th>
		<th><a href=loginpage.php>Login</a></th><th><a href=registerpage.php>Register</a></th>	</tr>
</table>
</center>
<center>
<div class="notice">
	<div>
		<B>Notice:</B>鉴于种种原因，本OJ自下周星期一（3月5号）开始不再全面开放，请各位做好善后事宜，谢谢合作。	</div>
</div>
</center>
</div>
<title>Problem 2524. -- [Poi1997]Rek 蚂蚁的递归访问 -- 衡阳八中OJ离线版-2012-02-29</title><center><h2>2524: [Poi1997]Rek 蚂蚁的递归访问</h2><span class=green>Time Limit: </span>10 Sec&nbsp;&nbsp;<span class=green>Memory Limit: </span>128 MB<br><span class=green>Submit: </span>1&nbsp;&nbsp;<span class=green>Solved: </span>0<br>[<a href='submitpage.php?id=2524'>Submit</a>][<a href='problemstatus.php?id=2524'>Status</a>][<a href='bbs.php?id=2524'>Discuss</a>]</center><h2>Description</h2><div class=content><p><span style="font-size: medium">&nbsp; </span></p>
<div v:shape="_x0000_s1026"><span style="font-size: medium">给定一个边长为2<span style="position: relative; top: -0.45em">n</span>棋盘，其中有M个格子是坏掉的。一个蚂蚁要从棋盘的左上角开始，遍历整个棋盘。每个点必须且仅允许走一遍。蚂蚁走的时候把棋盘分成了四个2<span style="position: relative; top: -0.45em">n-1</span>&nbsp;个小棋盘，蚂蚁总是走完其中的一个后再继续走下一个，也就是说，在进入一个小棋盘后，它必须把其中的所有点遍历以后才能走其他的点。</span></div>
<div v:shape="_x0000_s1026"><span style="font-size: medium"><img alt="" src="/JudgeOnline/upload/201111/1(8).jpg" /></span></div>
<p></p>
<div class="O" v:shape="_x0000_s1026" style="mso-line-spacing: '100 50 0'; mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-size: medium"><span style="font-family: SimSun; mso-ascii-font-family: SimSun; mso-hansi-font-family: 'Times New Roman'; mso-fareast-font-family: SimSun">对于上下左右四个边界，寻找边界上的一个格子，使得该格可以作为蚂蚁访问路线的终点</span></span></div>
<p></p>
<div class="O" v:shape="_x0000_s1026">
<div style="mso-line-spacing: '100 50 0'; mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-size: medium"><span style="font-family: SimSun; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-fareast-font-family: SimSun"><b>其中</b></span><span style="font-family: Verdana; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-fareast-font-family: SimSun"><b><span style="mso-spacerun: yes">&nbsp; </span>N &lt;= 30 , M &lt;= 50 </b></span></span></div>
<div style="mso-line-spacing: '100 50 0'; mso-char-wrap: 1; mso-kinsoku-overflow: 1"></div>
</div></div><h2>Input</h2><div class=content></div><h2>Output</h2><div class=content></div><h2>Sample Input</h2>
			<div class=content><span class=sampledata>3<br />
15<br />
2 0<br />
1 0<br />
3 0<br />
6 0<br />
7 0<br />
6 1<br />
7 1<br />
6 2<br />
7 2<br />
6 3<br />
7 3<br />
0 2<br />
0 3<br />
0 6<br />
0 7<br />
1 6<br />
1 7<br />
</span></div><h2>Sample Output</h2>
			<div class=content><span class=sampledata>NIE<br />
NIE<br />
NIE<br />
NIE<br />
</span></div><h2>HINT</h2>
			<div class=content><p><p>请不要提交！</p></p></div><h2>Source</h2>
			<div class=content><p><a href='problemset.html?search='></a></p></div><center>[<a href='submitpage.php?id=2524'>Submit</a>][<a href='problemstatus.php?id=2524'>Status</a>][<a href='bbs.php?id=2524'>Discuss</a>]</center>﻿<br>

<a href="./"><span class=red>HOME</span></a>
<a href="javascript:history.go(-1)"><span class=red>Back</span></a>

<hr>
<center>
	<div class="footer">
			<a href=setlang.php?lang=ko>한국어</a>&nbsp;
		<a href=setlang.php?lang=cn>中文</a>&nbsp;
		<a href=setlang.php?lang=fa>فارسی</a>&nbsp;
		<a href=setlang.php?lang=en>English</a>&nbsp;
		<a href=setlang.php?lang=th>ไทย</a>
	<br>		<div>版权所有 &copy;2008-2012 WaterPark Organization. | <script src="http://s21.cnzz.com/stat.php?id=2982771&web_id=2982771" language="JavaScript"></script>
</div>
		<div>Based on opensource project <a href="http://hustoj.googlecode.com">hustoj</a>.</div>
	</div>
</center>
</body>
</html>
